package com.gitee.shigen.security.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author shigenfu
 * @since 2024-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父菜单id
     */
    private Long parentId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 0-菜单组，1-功能菜单；菜单组下没有可访问功能菜单时不显示
     */
    private Integer type;

    /**
     * 菜单功能描述
     */
    private String description;

    /**
     * 菜单路径
     */
    private String path;

    /**
     * 在菜单中显示的图标（对非菜单功能无效）
     */
    private String menuIcon;

    /**
     * 是否弹出新窗口
     */
    private Boolean newWindow;

    /**
     * 排序顺序
     */
    private Integer sort;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
